package com.xxl.job.executor.service.jobhandler;

import org.springframework.stereotype.Component;

import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;

@Component
//@JobHandler("MyJobhandler")
public class MyJobhandler extends IJobHandler {

 @XxlJob("MyJobhandler")
 public void execute() throws Exception {
     System.out.println("+++++++++++++++++++++++");
 }
}